<?php
include("config.php");
require("fonctions.php");
$code = $_GET["error"];
$lang = $_POST["lang"];
if ($lang == "FR") {
    $lang = "FR";
    include("lang/fr_lang.php");
} elseif ($lang == "EN") {
    $lang = "EN";
    include("lang/en_lang.php");
} else {
    $lang = "FR";
    include("lang/fr_lang.php");
}
?>
<html  lang="fr">
    <head>
        <title>IDENTIFICATION</title>
        <link rel="stylesheet" type="text/css" href="style.css">  
    </head>
    <body>
        <form action="<?php echo($_SERVER['PHP_SELF']); ?>" method="post" name="chg_lang">
            <p>Langue:<select name="lang" onchange="this.form.submit()"><option value="FR" <?php if ($lang == "FR") echo 'selected'; ?>>FR</option>
                    <option value="EN" <?php if ($lang == "EN") echo 'selected'; ?>>EN</option></select></p>

        </form>
        <div class="login">
            <form action="controler.php?action=login" method="post" >
                <input type="hidden" name="lang" value="<?php echo $lang; ?>">
                <?php echo error_message($code); ?>
                <fieldset>

                    <legend><?php echo TXT_LEGEND; ?> :</legend>

                   

                    <label for="identifiant"><?php echo TXT_LOGIN; ?> :</label>
                    <input type="text" name="login" size="20" maxlength="40" id="identifiant" />
                    <label for="password"><?php echo TXT_PASSWORD; ?> :</label>
                    <input type="password" name="password" size="20" maxlength="40"  id="password" />


                    <p align=right><a href="oublie.php"><?php echo TXT_FORGOT_PWD; ?> >></a></p>
                </fieldset>

                <p align=center>
                    <input type="submit" value="<?php echo TXT_BOUTON_VALIDER; ?>" />

                </p>

            </form>

        </div>

<?php
require_once ("footer.php");
?>

